Now we need to add some physics settings to our stage for the game.

  • Go to and drag Set Gravity into your program.
  • Drag Disable Walls into your program.

Set Gravity makes all objects including the sprite fall to the bottom of the stage.

Disable Walls allow objects, including the pipes, to fly across the stage and leave without hitting the walls.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)